package com.zking.exception;

import lombok.Data;

@Data
public class CheckException extends RuntimeException{
    /**
     * 出错字段的名字
     */
    private String fieldName;
    /**
     * 出错字段的值
     */
    private String fieldVale;

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldVale() {
        return fieldVale;
    }

    public void setFieldVale(String fieldVale) {
        this.fieldVale = fieldVale;
    }

    public CheckException(String fieldName, String fieldVale){
        this.fieldName=fieldName;
        this.fieldVale=fieldVale;
    }
    public CheckException() {
        super();
    }

    public CheckException(String message) {
        super(message);
    }

    public CheckException(String message, Throwable cause) {
        super(message, cause);
    }

    public CheckException(Throwable cause) {
        super(cause);
    }

    protected CheckException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
